🎖️GitЯра🎖️
Commit 9d416855dd1d2074b5dbb5ad40e7e954246afcdf
Parents : b4bedd9
Author : ayysasha <19575937+ayysasha@users.noreply.github.com>
Signature : Signature validation error
Date : 2026-08-13T13:01:42Z
Committer : GitHub <noreply@github.com>
Date : 2026-08-13T13:01:42Z
fix(map): allow layers with generic MIME types (#6663)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Changes
2 files changed, 2 insertions(+), 19 deletions(-)
Diff
diff --git a/androidApp/src/fdroid/kotlin/org/meshtastic/app/map/MapView.kt b/androidApp/src/fdroid/kotlin/org/meshtastic/app/map/MapView.kt
index befbff67e0..e9e3f1530c 100644
--- a/androidApp/src/fdroid/kotlin/org/meshtastic/app/map/MapView.kt
+++ b/androidApp/src/fdroid/kotlin/org/meshtastic/app/map/MapView.kt
@@ -358,17 +358,8 @@ fun MapView(
val intent =
Intent(Intent.ACTION_OPEN_DOCUMENT).apply {
addCategory(Intent.CATEGORY_OPENABLE)
+ // Providers may assign generic MIME types to valid map files; validate the extension after selection.
type = "*/*"
- putExtra(
- Intent.EXTRA_MIME_TYPES,
- arrayOf(
- "application/vnd.google-earth.kml+xml",
- "application/vnd.google-earth.kmz",
- "application/vnd.geo+json",
- "application/geo+json",
- "application/json",
- ),
- )
}
filePickerLauncher.launch(intent)
}
diff --git a/androidApp/src/google/kotlin/org/meshtastic/app/map/MapView.kt b/androidApp/src/google/kotlin/org/meshtastic/app/map/MapView.kt
index a1dec22dbe..13a7c533a3 100644
--- a/androidApp/src/google/kotlin/org/meshtastic/app/map/MapView.kt
+++ b/androidApp/src/google/kotlin/org/meshtastic/app/map/MapView.kt
@@ -575,16 +575,8 @@ fun MapView(
val intent =
Intent(Intent.ACTION_OPEN_DOCUMENT).apply {
addCategory(Intent.CATEGORY_OPENABLE)
+ // Providers may assign generic MIME types to valid map files; validate the extension after selection.
type = "*/*"
- val mimeTypes =
- arrayOf(
- "application/vnd.google-earth.kml+xml",
- "application/vnd.google-earth.kmz",
- "application/vnd.geo+json",
- "application/geo+json",
- "application/json",
- )
- putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes)
}
filePickerLauncher.launch(intent)
}
Served by rngit 1.5.0 - Generated in 0.07s